package com.lx.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.github.pagehelper.PageInfo;
import com.lx.entity.Order;
import com.lx.entity.OrderDetail;

import java.util.List;
import java.util.Map;

public interface OrderService {
    PageInfo<Order> getPageInfo(Map<String, Object> params);
    List<Order> getOrderCarRecent(Integer userId) throws JsonProcessingException; //获取用户购物车 - 最新的未支付订单
    Order getEasyOrderById(Integer id);
    void modifyRedisOrderCar(Order car);
    boolean modifyDBOrderCar(Order car);
    boolean modifyOrderStatusBySerialNumber(String seriaNumber, Integer isPay);
    boolean modifyOrderStatusById(Integer id, Integer isPay);
    boolean addOrderDetail(OrderDetail orderDetail);
    boolean addOrderDetailList(Order order);
    List<OrderDetail> getOrderDetailList(List<Integer> ids);
    boolean deleteOrder(int id);
}
